import request from '@/utils/request'

// 查询人流密度列表
export function listFlowdensity(query) {
  return request({
    url: '/dyn/flowdensity/list',
    method: 'get',
    params: query
  })
}

// 查询人流密度详细
export function getFlowdensity(densityid) {
  return request({
    url: '/dyn/flowdensity/' + densityid,
    method: 'get'
  })
}

// 新增人流密度
export function addFlowdensity(data) {
  return request({
    url: '/dyn/flowdensity',
    method: 'post',
    data: data
  })
}

// 修改人流密度
export function updateFlowdensity(data) {
  return request({
    url: '/dyn/flowdensity',
    method: 'put',
    data: data
  })
}

// 删除人流密度
export function delFlowdensity(densityid) {
  return request({
    url: '/dyn/flowdensity/' + densityid,
    method: 'delete'
  })
}
